package com.cn.hu.entity.vo;

import java.io.Serializable;
import java.util.List;

/**
 * 返回结果集
 * @author 95
 *
 * @param <L>
 * @param <J>
 */
public class Result<L,J> implements Serializable {

	/**
	 * 
	 */
	
	private boolean success;
	private int errorCode;
	private String message;
	private L oneObj;
	private J twoObj;
	private List<J> twoList;
	
	//datatable view 
	private List<L> aaData;
	public Integer sEcho ;
	public Integer iTotalRecords;
	public Integer iTotalDisplayRecords;
	private String orderField;
	private String orderDirection;


	/// <summary>
	/// 过滤文本
	/// </summary>
	public String sSearch;

	/// <summary>
	/// 每页显示的数量
	/// </summary>
	public int iDisplayLength;

	/// <summary>
	/// 分页时每页跨度数量
	/// </summary>
	public int iDisplayStart;

	/// <summary>
	/// 列数
	/// </summary>
	public int iColumns ;

	/// <summary>
	/// 排序列的数量
	/// </summary>
	public int iSortingCols ;

	/// <summary>
	/// 逗号分割所有的列
	/// </summary>
	public String sColumns ;

	
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public int getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public L getOneObj() {
		return oneObj;
	}
	public void setOneObj(L oneObj) {
		this.oneObj = oneObj;
	}
	public List<L> getAaData() {
		return aaData;
	}
	public void setAaData(List<L> aaData) {
		this.aaData = aaData;
	}
	public J getTwoObj() {
		return twoObj;
	}
	public void setTwoObj(J twoObj) {
		this.twoObj = twoObj;
	}
	public List<J> getTwoList() {
		return twoList;
	}
	public void setTwoList(List<J> twoList) {
		this.twoList = twoList;
	}
	
	
	public Integer getsEcho() {
		return sEcho;
	}
	public void setsEcho(Integer sEcho) {
		this.sEcho = sEcho;
	}
	public String getOrderField() {
		return orderField;
	}
	public void setOrderField(String orderField) {
		this.orderField = orderField;
	}
	public String getOrderDirection() {
		return orderDirection;
	}
	public void setOrderDirection(String orderDirection) {
		this.orderDirection = orderDirection;
	}
	public String getsSearch() {
		return sSearch;
	}
	public void setsSearch(String sSearch) {
		this.sSearch = sSearch;
	}
	public int getiDisplayLength() {
		return iDisplayLength;
	}
	public void setiDisplayLength(int iDisplayLength) {
		this.iDisplayLength = iDisplayLength;
	}
	public int getiDisplayStart() {
		return iDisplayStart;
	}
	public void setiDisplayStart(int iDisplayStart) {
		this.iDisplayStart = iDisplayStart;
	}
	public int getiColumns() {
		return iColumns;
	}
	public void setiColumns(int iColumns) {
		this.iColumns = iColumns;
	}
	public int getiSortingCols() {
		return iSortingCols;
	}
	public void setiSortingCols(int iSortingCols) {
		this.iSortingCols = iSortingCols;
	}
	public String getsColumns() {
		return sColumns;
	}
	public void setsColumns(String sColumns) {
		this.sColumns = sColumns;
	}
	public void setiTotalRecords(Integer iTotalRecords) {
		this.iTotalRecords = iTotalRecords;
	}
	public void setiTotalDisplayRecords(Integer iTotalDisplayRecords) {
		this.iTotalDisplayRecords = iTotalDisplayRecords;
	}
	
	
	
	
}
